<template>
	<view>
		<!-- 背景图 -->
		<image class="loginBackImage" src="@/static/img/login/loginBackImage.png" mode=""></image>

		<!-- 返回按钮 -->
		<image v-if="back" src="../../../static/img/login/backBtn.png" class="backBtn" @click="backPage" mode="">
		</image>

		<!-- logo图 -->
		<view class="logoView">
			<view class="logoViewCenter">
				<image class="logo" src="@/static/img/login/logo.png" mode=""></image>
				<view class="logoTitle">
					云端设备监测平台
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['back'],
		data() {
			return {

			}
		},
		onShow() {

		},
		onLoad() {

		},
		methods: {
			backPage() {
				uni.navigateBack(-1);
			}
		}
	}
</script>

<style lang="less" scoped>
	.loginBackImage {
		width: 100%;
		height: 866rpx;
		position: absolute;
		z-index: -1;
	}

	.backBtn {
		height: 44rpx;
		width: 24rpx;
		position: absolute;
		left: 25rpx;
		top: 45rpx;
	}

	.logoView {
		padding-top: 128rpx;
		display: flex;
		justify-content: center;

		.logo {
			position: relative;
			left: 50%;
			transform: translateX(-50%);
			width: calc(99rpx * 2);
			height: calc(99rpx * 2);
		}

		.logoTitle {
			font-size: 35rpx;
			font-weight: bold;
			margin-top: 35rpx;
		}
	}
</style>